package org.jeeasy.system.modules.role.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.dromara.mpe.autotable.annotation.Column;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;

import java.io.Serializable;

/**
 * @author AlpsDDJ
 * @date 2020/11/24 13:48
 */
@Data
@Accessors(chain = true)
@Table(value = "sys_role_permission", comment = "系统角色权限关联表")
@EqualsAndHashCode(callSuper = true)
public class SysRolePermission extends Model<SysRolePermission> implements Serializable {

    @ColumnId(mode = IdType.ASSIGN_ID, length = 24, comment = "ID")
    private String id;

    @Column(comment = "角色id", length = 24)
    private String roleId;

    @Column(comment = "权限id", length = 24)
    private String permissionId;

}
